package javaParser;
/*
 * RdfConstructor.java
 *
 * Created on February 28, 2008, 11:07 AM
 *
 */

/**
 *
 * @author Tian, Juan
 */
import java.util.LinkedList;
public class RdfConstructor extends RdfTreeNode{
    
    LinkedList <String> calls;
    LinkedList <RdfParam> params;
    LinkedList <RdfException> exceptions;
    LinkedList <String> uncertains; //need parser again
    /**
     * Creates a new instance of RdfConstructor
     */
    public RdfConstructor() {
        this("default");
    }
    public RdfConstructor(String perfix) {
        this(perfix, null, null);
    }
    public RdfConstructor(String name, String type){
        this("default", name, type);
    }
    public RdfConstructor(String perfix, String name, String type) {
        super(perfix, name, type);
        calls = new LinkedList<String>();
        params = new LinkedList<RdfParam>();
        exceptions = new LinkedList<RdfException>();
        uncertains = new LinkedList<String>();
    }
    public boolean addUncertain(String a){
        return uncertains.add(a);
    }
    public boolean removeUncertain(String a) {
        return uncertains.remove(a);
    }
    public String removeUncertain(int i) {
        return uncertains.remove(i);
    }
    public String getUncertain(int i) {
        return uncertains.get(i);
    }
    public boolean addCall(String a) {
        return calls.add(a);
    }
    public boolean addParam(RdfParam a) {
        return params.add(a);
    }
    public boolean addException(RdfException a) {
        return exceptions.add(a);
    }

    
}
